<!DOCTYPE html>
<html>
<head>
  {{template "head" }}
  <title>{{.Topic.Title}}</title>
</head>
<body>
  {{template "header" }}
  <div id='container'>
    {{template "nav" }}
    <div class="content">
        <section class="post">
          <h1 class="upcase">
            <div class="date">{{date .Topic.Created "Y-m-d"}}</div>
           {{.Topic.Title}}
          </h1>
          {{str2html .Topic.Content}}
        </section>
    </div>
    {{if .User}}
    <div class="block tool">
      <a target="_blank" class="main" href="/modify/{{.Topic.Tid}}">Modify</a>
      <a target="_blank" class="main" onclick="if (confirm('确定删除？')) {this.href='/del/{{.Topic.Tid}}'}">Del</a>
    </div>
    {{end}}
    {{template "nav" }}
  </div>
  {{template "footer" }}
</body>
</html>
